package com.gukun.springboot.tdengine.pojo;

import com.gukun.springboot.tdengine.domain.enums.TagType;

/**
 * PROJECT_NAME: tsdata-adapter
 * DESCRIPTION:
 * USER: gukun
 * DATE: 2023/11/23 19:32
 */
public class TagInfo {
    /**
     * 测点ID
     */
    Long tagId;
    /**
     * 测点名称
     */
    String tagName;
    /**
     * 测点描述
     */
    String tagDesc;
    /**
     * 测点类型
     */
    TagType tagType;
    /**
     * 单位
     */
    String unit;
    /**
     * 小数位数
     */
    int pointNum;
    /**
     * 工程下限
     */
    double minValue;
    /**
     * 工程上限
     */
    double maxValue;
    /**
     * 报警高限
     */
    double upLimit;
    /**
     * 报警高高限
     */
    double upUpLimit;
    /**
     * 报警低限
     */
    double lowLimit;
    /**
     * 报警低低限
     */
    double lowLowLimit;

    /**
     * 用于创建子表对应的tags
     */
    String tags;

    String ti;
    String tn;

    String ta;

    public Long getTagId() {
        return tagId;
    }

    public void setTagId(Long tagId) {
        this.tagId = tagId;
    }

    public String getTagName() {
        return tagName;
    }

    public void setTagName(String tagName) {
        this.tagName = tagName;
    }

    public String getTagDesc() {
        return tagDesc;
    }

    public void setTagDesc(String tagDesc) {
        this.tagDesc = tagDesc;
    }

    public TagType getTagType() {
        return tagType;
    }

    public void setTagType(TagType tagType) {
        this.tagType = tagType;
    }

    public String getUnit() {
        return unit;
    }

    public void setUnit(String unit) {
        this.unit = unit;
    }

    public int getPointNum() {
        return pointNum;
    }

    public void setPointNum(int pointNum) {
        this.pointNum = pointNum;
    }

    public double getMinValue() {
        return minValue;
    }

    public void setMinValue(double minValue) {
        this.minValue = minValue;
    }

    public double getMaxValue() {
        return maxValue;
    }

    public void setMaxValue(double maxValue) {
        this.maxValue = maxValue;
    }

    public double getUpLimit() {
        return upLimit;
    }

    public void setUpLimit(double upLimit) {
        this.upLimit = upLimit;
    }

    public double getUpUpLimit() {
        return upUpLimit;
    }

    public void setUpUpLimit(double upUpLimit) {
        this.upUpLimit = upUpLimit;
    }

    public double getLowLimit() {
        return lowLimit;
    }

    public void setLowLimit(double lowLimit) {
        this.lowLimit = lowLimit;
    }

    public double getLowLowLimit() {
        return lowLowLimit;
    }

    public void setLowLowLimit(double lowLowLimit) {
        this.lowLowLimit = lowLowLimit;
    }

    public String getTags() {
        return tags;
    }

    public void setTags(String tags) {
        this.tags = tags;
    }

    public String getTi() {
        return ti;
    }

    public void setTi(String ti) {
        this.ti = ti;
    }

    public String getTn() {
        return tn;
    }

    public void setTn(String tn) {
        this.tn = tn;
    }

    public String getTa() {
        return ta;
    }

    public void setTa(String ta) {
        this.ta = ta;
    }

    @Override
    public String toString() {
        return "{" +
                "tagId:'" + tagId +
                "', tagName:'" + tagName.toLowerCase() + '\'' +
                ", tagType:'" + tagType +
                "', tagDesc:'" + tagDesc +
                "', unit:'" + unit + '\'' +
                ", pointNum:" + pointNum +
                ", minValue:" + minValue +
                ", maxValue:" + maxValue +
                ", upLimit:" + upLimit +
                ", upUpLimit:" + upUpLimit +
                ", lowLimit:" + lowLimit +
                ", lowLowLimit:" + lowLowLimit +
                "}";
    }


}
